package com.intramirror.wd.business.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.intramirror.wd.model.po.S2cCouponStrategy;
import com.intramirror.wd.model.po.S2cCouponStrategyExample;
import com.intramirror.wd.model.vo.coupon.S2cCouponStrategyVo;

@Repository
public interface S2cCouponStrategyMapper {
    /**
     * @mbg.generated
     */
    long countByExample(S2cCouponStrategyExample example);

    /**
     * @mbg.generated
     */
    int insert(S2cCouponStrategy record);

    /**
     * @mbg.generated
     */
    Long insertSelective(S2cCouponStrategy record);

    /**
     * @mbg.generated
     */
    List<S2cCouponStrategy> selectByExample(S2cCouponStrategyExample example);

    /**
     * @mbg.generated
     */
    S2cCouponStrategy selectByPrimaryKey(Long id);

    /**
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") S2cCouponStrategy record, @Param("example") S2cCouponStrategyExample example);

    /**
     * @mbg.generated
     */
    int updateByExample(@Param("record") S2cCouponStrategy record, @Param("example") S2cCouponStrategyExample example);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(S2cCouponStrategy record);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKey(S2cCouponStrategy record);

    int deleteById(@Param("id")Long id);

    List<S2cCouponStrategyVo> getCouponStrategyList();


    List<S2cCouponStrategy> findByIsPublished(Integer is);
}